package com.hadoop.common;

/**
 * <p></p>
 *
 * @author Andy
 * @date 2017/10/12
 */
public class Constants {

    //=======================keys=======================

    /**
     * 用来统计登录密码失败的次数
     */
    public static final String LOGIN_PASSWORD_ERROR_COUNT = "login:password:error:count";

    /**
     * 失效的用户
     */
    public static final String INVALID_USER_ID = "invalid:user:";

    public static final String COOKIE_KEY_WEB_HADOOP = "web_hadoop"; //cookie key

    /**
     * 登录用户的相关信息
     */
    public static final String LOGIN_USER_INFO = "login:user:info:";

    /**
     * 文件上传的路径
     */
    public static final String UPLOAD_FILE_USERNAME = "upload:file:username:";

    //=======================constant=======================
    /**
     * 用户的session过期时间
     */
    public static final int SESSION_EXPIRE_TIME = 1800;
}
